home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / smail-3.1.28 / src / exitcodes.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-08  |  1.5 KB  |  49 lines

  1. /* @(#)src/exitcodes.h    1.4 8/8/92 17:33:25 */
  2.  
  3. /*
  4.  *    Copyright (C) 1987, 1988 Ronald S. Karr and Landon Curt Noll
  5.  *    Copyright (C) 1992  Ronald S. Karr
  6.  * 
  7.  * See the file COPYING, distributed with smail, for restriction
  8.  * and warranty information.
  9.  */
  10.  
  11. /*
  12.  * exitcodes:
  13.  *
  14.  *     "standard" exit code values for sites that do not have
  15.  *     a <sysexits.h> include file
  16.  */
  17.  
  18. #ifndef HAVE_SYSEXITS
  19.  
  20. /*
  21.  * use the default values for exit codes unless somebody want's to
  22.  * override
  23.  */
  24. # ifndef EX_BASE
  25. #  define EX_BASE 64
  26. # endif    /* EX_BASE */
  27.  
  28. # undef EX_OK                /* remove EX_OK defined in SVR4.2 */
  29. # define EX_OK        0        /* successful termination */
  30. # define EX_USAGE    (EX_BASE+0)    /* command line usage error */
  31. # define EX_DATAERR    (EX_BASE+1)    /* data format error */
  32. # define EX_NOINPUT    (EX_BASE+2)    /* cannot open input */
  33. # define EX_NOUSER    (EX_BASE+3)    /* addressee unknown */
  34. # define EX_NOHOST    (EX_BASE+4)    /* host name unknown */
  35. # define EX_UNAVAILABLE    (EX_BASE+5)    /* service unavailable */
  36. # define EX_SOFTWARE    (EX_BASE+6)    /* internal software error */
  37. # define EX_OSERR    (EX_BASE+7)    /* system error */
  38. # define EX_OSFILE    (EX_BASE+8)    /* critical OS file missing */
  39. # define EX_CANTCREAT    (EX_BASE+9)    /* can't create (user) output file */
  40. # define EX_IOERR    (EX_BASE+10)    /* error in file i/o */
  41. # define EX_TEMPFAIL    (EX_BASE+11)    /* temp failure; user can retry */
  42. # define EX_PROTOCOL    (EX_BASE+12)    /* remote error in protocol */
  43. # define EX_NOPERM    (EX_BASE+13)    /* permission denied */
  44. #else    /* HAVE_SYSEXITS */
  45.  
  46. # include <sysexits.h>
  47.  
  48. #endif    /* HAVE_SYSEXITS */
  49.